﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Heap
{

    public class Node
    {

        private object m_Value;
        private ConstraintKey m_Key;
        private int m_Index;

        public Node(ConstraintKey _key, object _value, int _index)
        {
            this.m_Value = _value;
            this.m_Key = _key;
            this.m_Index = _index;
            
        }

        public Node(Node _Node)
        {
            this.m_Value = _Node.getM_Value();
            this.m_Key = _Node.m_Key;
            this.m_Index = 0;
        }

        public object getM_Value()
        {
            return m_Value;
        }

        public void setM_Value(object m_Value)
        {
            this.m_Value = m_Value;
        }

        public ConstraintKey getM_Key()
        {
            return m_Key;
        }

        public void setM_Key(ConstraintKey m_Key)
        {
            this.m_Key = m_Key;
        }

        public int getM_Index()
        {
            return m_Index;
        }

        public void setM_Index(int m_Index)
        {
            this.m_Index = m_Index;
        }


    }

}
